<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>管理和分配数据源 | Ranorex Studio用户手册</title>
    <meta name="generator" content="VuePress 1.8.0">
    <link rel="icon" href="/ranorex/img/favicon.ico">
    <script data-ad-client="ca-pub-7828333725993554" async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <meta name="description" content="用户指南的第一章将引导您完成创建第一个自动化测试用例的过程。了解如何在不编码的情况下自动执行测试、验证条目、查看测试报告等。后面的章节涵盖高级主题，例如使用 Selenium WebDriver 进行跨浏览器测试和为移动应用程序测试准备设备。">
    <meta name="keywords" content="用户指南的第一章将引导您完成创建第一个自动化测试用例的过程。了解如何在不编码的情况下自动执行测试、验证条目、查看测试报告等。后面的章节涵盖高级主题，例如使用 Selenium WebDriver 进行跨浏览器测试和为移动应用程序测试准备设备。">
    <meta name="baidu-site-verification" content="7F55weZDDc">
    <meta name="theme-color" content="#11a8cd">
    
    <link rel="preload" href="/ranorex/assets/css/0.styles.4f9f6236.css" as="style"><link rel="preload" href="/ranorex/assets/js/app.24b7eaa5.js" as="script"><link rel="preload" href="/ranorex/assets/js/2.ec9fdd2b.js" as="script"><link rel="preload" href="/ranorex/assets/js/62.3f142075.js" as="script"><link rel="prefetch" href="/ranorex/assets/js/10.10740124.js"><link rel="prefetch" href="/ranorex/assets/js/100.e7028cb5.js"><link rel="prefetch" href="/ranorex/assets/js/101.57840c4c.js"><link rel="prefetch" href="/ranorex/assets/js/102.f88ac37b.js"><link rel="prefetch" href="/ranorex/assets/js/103.3f4ef0af.js"><link rel="prefetch" href="/ranorex/assets/js/104.1c3987fc.js"><link rel="prefetch" href="/ranorex/assets/js/105.39bd6f16.js"><link rel="prefetch" href="/ranorex/assets/js/106.6d99777c.js"><link rel="prefetch" href="/ranorex/assets/js/107.a772dfce.js"><link rel="prefetch" href="/ranorex/assets/js/108.1f6106fd.js"><link rel="prefetch" href="/ranorex/assets/js/109.61465bce.js"><link rel="prefetch" href="/ranorex/assets/js/11.15aa2ac8.js"><link rel="prefetch" href="/ranorex/assets/js/110.87f08865.js"><link rel="prefetch" href="/ranorex/assets/js/111.6de4977a.js"><link rel="prefetch" href="/ranorex/assets/js/112.ac81b438.js"><link rel="prefetch" href="/ranorex/assets/js/113.e4324abb.js"><link rel="prefetch" href="/ranorex/assets/js/114.76da90e6.js"><link rel="prefetch" href="/ranorex/assets/js/115.b0302cf5.js"><link rel="prefetch" href="/ranorex/assets/js/116.dc9013d8.js"><link rel="prefetch" href="/ranorex/assets/js/117.5650909e.js"><link rel="prefetch" href="/ranorex/assets/js/118.83c3ad11.js"><link rel="prefetch" href="/ranorex/assets/js/119.99ea8a2f.js"><link rel="prefetch" href="/ranorex/assets/js/12.f887e0d3.js"><link rel="prefetch" href="/ranorex/assets/js/120.5158a9fc.js"><link rel="prefetch" href="/ranorex/assets/js/121.cd6389de.js"><link rel="prefetch" href="/ranorex/assets/js/122.30b6e23a.js"><link rel="prefetch" href="/ranorex/assets/js/123.14ef94d2.js"><link rel="prefetch" href="/ranorex/assets/js/124.774c039f.js"><link rel="prefetch" href="/ranorex/assets/js/125.ec98d72a.js"><link rel="prefetch" href="/ranorex/assets/js/126.a5374d41.js"><link rel="prefetch" href="/ranorex/assets/js/127.6bb71a7f.js"><link rel="prefetch" href="/ranorex/assets/js/128.dddf9e5d.js"><link rel="prefetch" href="/ranorex/assets/js/129.803e1198.js"><link rel="prefetch" href="/ranorex/assets/js/13.98375c72.js"><link rel="prefetch" href="/ranorex/assets/js/130.7fe218d8.js"><link rel="prefetch" href="/ranorex/assets/js/131.ccdb53c7.js"><link rel="prefetch" href="/ranorex/assets/js/132.f059a1a9.js"><link rel="prefetch" href="/ranorex/assets/js/133.4108c727.js"><link rel="prefetch" href="/ranorex/assets/js/134.9d680a15.js"><link rel="prefetch" href="/ranorex/assets/js/135.6a9d4859.js"><link rel="prefetch" href="/ranorex/assets/js/136.2198a58d.js"><link rel="prefetch" href="/ranorex/assets/js/137.ee7cb289.js"><link rel="prefetch" href="/ranorex/assets/js/138.26c7e792.js"><link rel="prefetch" href="/ranorex/assets/js/139.eeb24972.js"><link rel="prefetch" href="/ranorex/assets/js/14.45cccdbd.js"><link rel="prefetch" href="/ranorex/assets/js/140.7ec1802a.js"><link rel="prefetch" href="/ranorex/assets/js/141.fb7a23f0.js"><link rel="prefetch" href="/ranorex/assets/js/142.6749eff4.js"><link rel="prefetch" href="/ranorex/assets/js/143.431594af.js"><link rel="prefetch" href="/ranorex/assets/js/144.a2f5ce52.js"><link rel="prefetch" href="/ranorex/assets/js/145.0601585d.js"><link rel="prefetch" href="/ranorex/assets/js/146.16feb8bc.js"><link rel="prefetch" href="/ranorex/assets/js/147.5053e695.js"><link rel="prefetch" href="/ranorex/assets/js/148.a353c0d0.js"><link rel="prefetch" href="/ranorex/assets/js/149.31c0ff28.js"><link rel="prefetch" href="/ranorex/assets/js/15.f23b2dea.js"><link rel="prefetch" href="/ranorex/assets/js/150.6542abfd.js"><link rel="prefetch" href="/ranorex/assets/js/151.43e948e3.js"><link rel="prefetch" href="/ranorex/assets/js/152.dd6cabb1.js"><link rel="prefetch" href="/ranorex/assets/js/153.f014da37.js"><link rel="prefetch" href="/ranorex/assets/js/154.6ee45ca5.js"><link rel="prefetch" href="/ranorex/assets/js/155.6ba5415a.js"><link rel="prefetch" href="/ranorex/assets/js/156.e601c1e5.js"><link rel="prefetch" href="/ranorex/assets/js/157.407e013c.js"><link rel="prefetch" href="/ranorex/assets/js/158.0bb7c774.js"><link rel="prefetch" href="/ranorex/assets/js/159.17154eef.js"><link rel="prefetch" href="/ranorex/assets/js/16.5154513b.js"><link rel="prefetch" href="/ranorex/assets/js/160.9d4cb6ba.js"><link rel="prefetch" href="/ranorex/assets/js/161.a53a87be.js"><link rel="prefetch" href="/ranorex/assets/js/162.54b97f63.js"><link rel="prefetch" href="/ranorex/assets/js/163.546cbc2d.js"><link rel="prefetch" href="/ranorex/assets/js/164.7bc339ce.js"><link rel="prefetch" href="/ranorex/assets/js/165.67d4304a.js"><link rel="prefetch" href="/ranorex/assets/js/166.7c1be565.js"><link rel="prefetch" href="/ranorex/assets/js/167.bd0167b7.js"><link rel="prefetch" href="/ranorex/assets/js/168.1aa7878a.js"><link rel="prefetch" href="/ranorex/assets/js/169.d90b4e9c.js"><link rel="prefetch" href="/ranorex/assets/js/17.5fcd13ca.js"><link rel="prefetch" href="/ranorex/assets/js/170.cb5db4fb.js"><link rel="prefetch" href="/ranorex/assets/js/171.b8147650.js"><link rel="prefetch" href="/ranorex/assets/js/172.53f22d79.js"><link rel="prefetch" href="/ranorex/assets/js/173.0e60c801.js"><link rel="prefetch" href="/ranorex/assets/js/174.8c29f5a4.js"><link rel="prefetch" href="/ranorex/assets/js/175.caa398e0.js"><link rel="prefetch" href="/ranorex/assets/js/176.36e20920.js"><link rel="prefetch" href="/ranorex/assets/js/177.1b8ca17e.js"><link rel="prefetch" href="/ranorex/assets/js/178.686cd676.js"><link rel="prefetch" href="/ranorex/assets/js/179.62ed8882.js"><link rel="prefetch" href="/ranorex/assets/js/18.3410087d.js"><link rel="prefetch" href="/ranorex/assets/js/180.a0a2165c.js"><link rel="prefetch" href="/ranorex/assets/js/181.8af8faa3.js"><link rel="prefetch" href="/ranorex/assets/js/182.dc2e7167.js"><link rel="prefetch" href="/ranorex/assets/js/183.ef7688da.js"><link rel="prefetch" href="/ranorex/assets/js/184.5707a5ec.js"><link rel="prefetch" href="/ranorex/assets/js/185.72e933f8.js"><link rel="prefetch" href="/ranorex/assets/js/186.ac3e0f9e.js"><link rel="prefetch" href="/ranorex/assets/js/187.703ef8ea.js"><link rel="prefetch" href="/ranorex/assets/js/188.d04772eb.js"><link rel="prefetch" href="/ranorex/assets/js/189.549c54cf.js"><link rel="prefetch" href="/ranorex/assets/js/19.f5a747d2.js"><link rel="prefetch" href="/ranorex/assets/js/190.a7fb60b7.js"><link rel="prefetch" href="/ranorex/assets/js/191.0b9e402d.js"><link rel="prefetch" href="/ranorex/assets/js/192.db701f56.js"><link rel="prefetch" href="/ranorex/assets/js/193.86245113.js"><link rel="prefetch" href="/ranorex/assets/js/194.26dcdaa9.js"><link rel="prefetch" href="/ranorex/assets/js/195.341ac6b9.js"><link rel="prefetch" href="/ranorex/assets/js/196.e12e179b.js"><link rel="prefetch" href="/ranorex/assets/js/197.604689a4.js"><link rel="prefetch" href="/ranorex/assets/js/198.2e49a4fc.js"><link rel="prefetch" href="/ranorex/assets/js/199.a1811557.js"><link rel="prefetch" href="/ranorex/assets/js/20.fcd6c62f.js"><link rel="prefetch" href="/ranorex/assets/js/200.bbfc3813.js"><link rel="prefetch" href="/ranorex/assets/js/201.dfbdd0b3.js"><link rel="prefetch" href="/ranorex/assets/js/202.4d01f6a5.js"><link rel="prefetch" href="/ranorex/assets/js/203.2fc1b32a.js"><link rel="prefetch" href="/ranorex/assets/js/204.a18e0686.js"><link rel="prefetch" href="/ranorex/assets/js/205.8559eb21.js"><link rel="prefetch" href="/ranorex/assets/js/206.febc4af9.js"><link rel="prefetch" href="/ranorex/assets/js/207.3824dcf1.js"><link rel="prefetch" href="/ranorex/assets/js/208.60a33728.js"><link rel="prefetch" href="/ranorex/assets/js/209.d933f506.js"><link rel="prefetch" href="/ranorex/assets/js/21.cf8fbb66.js"><link rel="prefetch" href="/ranorex/assets/js/210.8f377e06.js"><link rel="prefetch" href="/ranorex/assets/js/211.26f8be02.js"><link rel="prefetch" href="/ranorex/assets/js/212.4a64d44c.js"><link rel="prefetch" href="/ranorex/assets/js/213.fdeb4f41.js"><link rel="prefetch" href="/ranorex/assets/js/214.e34e9a0b.js"><link rel="prefetch" href="/ranorex/assets/js/215.ce7a5ee6.js"><link rel="prefetch" href="/ranorex/assets/js/216.660d864f.js"><link rel="prefetch" href="/ranorex/assets/js/217.b9b06dc0.js"><link rel="prefetch" href="/ranorex/assets/js/218.1c9eb327.js"><link rel="prefetch" href="/ranorex/assets/js/219.9f170a55.js"><link rel="prefetch" href="/ranorex/assets/js/22.148be82a.js"><link rel="prefetch" href="/ranorex/assets/js/220.15dc816e.js"><link rel="prefetch" href="/ranorex/assets/js/221.80b3442a.js"><link rel="prefetch" href="/ranorex/assets/js/222.704d161c.js"><link rel="prefetch" href="/ranorex/assets/js/223.1145a930.js"><link rel="prefetch" href="/ranorex/assets/js/224.f1da1ddc.js"><link rel="prefetch" href="/ranorex/assets/js/225.fa6a9452.js"><link rel="prefetch" href="/ranorex/assets/js/226.18a3865a.js"><link rel="prefetch" href="/ranorex/assets/js/23.cc718ca8.js"><link rel="prefetch" href="/ranorex/assets/js/24.86da407f.js"><link rel="prefetch" href="/ranorex/assets/js/25.f55794a8.js"><link rel="prefetch" href="/ranorex/assets/js/26.034daa9c.js"><link rel="prefetch" href="/ranorex/assets/js/27.2fbbd462.js"><link rel="prefetch" href="/ranorex/assets/js/28.211c41f6.js"><link rel="prefetch" href="/ranorex/assets/js/29.04c0999c.js"><link rel="prefetch" href="/ranorex/assets/js/3.ae597d9c.js"><link rel="prefetch" href="/ranorex/assets/js/30.393ae7bc.js"><link rel="prefetch" href="/ranorex/assets/js/31.c8ad9771.js"><link rel="prefetch" href="/ranorex/assets/js/32.77f25c7a.js"><link rel="prefetch" href="/ranorex/assets/js/33.893cd8eb.js"><link rel="prefetch" href="/ranorex/assets/js/34.ad372005.js"><link rel="prefetch" href="/ranorex/assets/js/35.8b8dfbb2.js"><link rel="prefetch" href="/ranorex/assets/js/36.d4e0c135.js"><link rel="prefetch" href="/ranorex/assets/js/37.616da736.js"><link rel="prefetch" href="/ranorex/assets/js/38.2432a079.js"><link rel="prefetch" href="/ranorex/assets/js/39.8b943467.js"><link rel="prefetch" href="/ranorex/assets/js/4.22fd3e1a.js"><link rel="prefetch" href="/ranorex/assets/js/40.e8eaccc8.js"><link rel="prefetch" href="/ranorex/assets/js/41.76a9eede.js"><link rel="prefetch" href="/ranorex/assets/js/42.89ea171c.js"><link rel="prefetch" href="/ranorex/assets/js/43.f856cbbb.js"><link rel="prefetch" href="/ranorex/assets/js/44.58030fb1.js"><link rel="prefetch" href="/ranorex/assets/js/45.3d09c2fa.js"><link rel="prefetch" href="/ranorex/assets/js/46.b245fc56.js"><link rel="prefetch" href="/ranorex/assets/js/47.bc3b2fa7.js"><link rel="prefetch" href="/ranorex/assets/js/48.b46f224f.js"><link rel="prefetch" href="/ranorex/assets/js/49.4cb3377b.js"><link rel="prefetch" href="/ranorex/assets/js/5.02a8399a.js"><link rel="prefetch" href="/ranorex/assets/js/50.202bba60.js"><link rel="prefetch" href="/ranorex/assets/js/51.70007468.js"><link rel="prefetch" href="/ranorex/assets/js/52.cb4cc59e.js"><link rel="prefetch" href="/ranorex/assets/js/53.8eb695b2.js"><link rel="prefetch" href="/ranorex/assets/js/54.f840fad6.js"><link rel="prefetch" href="/ranorex/assets/js/55.3a7ca993.js"><link rel="prefetch" href="/ranorex/assets/js/56.e54f166f.js"><link rel="prefetch" href="/ranorex/assets/js/57.cc924439.js"><link rel="prefetch" href="/ranorex/assets/js/58.1b6a4239.js"><link rel="prefetch" href="/ranorex/assets/js/59.6e538365.js"><link rel="prefetch" href="/ranorex/assets/js/6.4754e26a.js"><link rel="prefetch" href="/ranorex/assets/js/60.24be2f8a.js"><link rel="prefetch" href="/ranorex/assets/js/61.37707aa9.js"><link rel="prefetch" href="/ranorex/assets/js/63.ffca709a.js"><link rel="prefetch" href="/ranorex/assets/js/64.71472536.js"><link rel="prefetch" href="/ranorex/assets/js/65.5a22e1db.js"><link rel="prefetch" href="/ranorex/assets/js/66.12137ec5.js"><link rel="prefetch" href="/ranorex/assets/js/67.216d94c5.js"><link rel="prefetch" href="/ranorex/assets/js/68.b547be06.js"><link rel="prefetch" href="/ranorex/assets/js/69.500ef0be.js"><link rel="prefetch" href="/ranorex/assets/js/7.8d47de9d.js"><link rel="prefetch" href="/ranorex/assets/js/70.17ab2354.js"><link rel="prefetch" href="/ranorex/assets/js/71.becd4c9d.js"><link rel="prefetch" href="/ranorex/assets/js/72.0a81c3ac.js"><link rel="prefetch" href="/ranorex/assets/js/73.c3f7b9bc.js"><link rel="prefetch" href="/ranorex/assets/js/74.489b5d01.js"><link rel="prefetch" href="/ranorex/assets/js/75.15b80f90.js"><link rel="prefetch" href="/ranorex/assets/js/76.37e86e91.js"><link rel="prefetch" href="/ranorex/assets/js/77.8a96a11b.js"><link rel="prefetch" href="/ranorex/assets/js/78.1089236e.js"><link rel="prefetch" href="/ranorex/assets/js/79.2d89654c.js"><link rel="prefetch" href="/ranorex/assets/js/8.197778c9.js"><link rel="prefetch" href="/ranorex/assets/js/80.6c0ca93e.js"><link rel="prefetch" href="/ranorex/assets/js/81.c09d0fd2.js"><link rel="prefetch" href="/ranorex/assets/js/82.2cf30b53.js"><link rel="prefetch" href="/ranorex/assets/js/83.6a836fd5.js"><link rel="prefetch" href="/ranorex/assets/js/84.f56aeffe.js"><link rel="prefetch" href="/ranorex/assets/js/85.fa5f1544.js"><link rel="prefetch" href="/ranorex/assets/js/86.f5d69b57.js"><link rel="prefetch" href="/ranorex/assets/js/87.5da46a4d.js"><link rel="prefetch" href="/ranorex/assets/js/88.2d708653.js"><link rel="prefetch" href="/ranorex/assets/js/89.cd2fa46c.js"><link rel="prefetch" href="/ranorex/assets/js/9.9807028d.js"><link rel="prefetch" href="/ranorex/assets/js/90.33ee88ae.js"><link rel="prefetch" href="/ranorex/assets/js/91.f157a5e7.js"><link rel="prefetch" href="/ranorex/assets/js/92.5652bd0e.js"><link rel="prefetch" href="/ranorex/assets/js/93.4adefe5e.js"><link rel="prefetch" href="/ranorex/assets/js/94.18953313.js"><link rel="prefetch" href="/ranorex/assets/js/95.87b602b5.js"><link rel="prefetch" href="/ranorex/assets/js/96.8eb960e1.js"><link rel="prefetch" href="/ranorex/assets/js/97.19ab9295.js"><link rel="prefetch" href="/ranorex/assets/js/98.3782e119.js"><link rel="prefetch" href="/ranorex/assets/js/99.23b63326.js">
    <link rel="stylesheet" href="/ranorex/assets/css/0.styles.4f9f6236.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open have-rightmenu"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/ranorex/" class="home-link router-link-active"><img src="/ranorex/img/RX-logo.png" alt="Ranorex Studio用户手册" class="logo"> <span class="site-name can-hide">Ranorex Studio用户手册</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/ranorex/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="基础" class="dropdown-title"><a href="/ranorex/pages/978dd7/" class="link-title">基础</a> <span class="title" style="display:none;">基础</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/db051d/" class="nav-link">在20分钟内了解 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d5a062/" class="nav-link">Ranorex Studio</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d8d817/" class="nav-link">Ranorex 录制器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1f8583/" class="nav-link">测试套件</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/3ff037/" class="nav-link">动作</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/980f3d/" class="nav-link">控件库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/2c14f7/" class="nav-link">验证测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8b8105/" class="nav-link">白名单</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/894a89/" class="nav-link">报告</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级" class="dropdown-title"><a href="/ranorex/pages/11401f/" class="link-title">高级</a> <span class="title" style="display:none;">高级</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/554573/" class="nav-link">数据驱动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/331ecc/" class="nav-link">追踪UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6943ae/" class="nav-link">Ranorex Spy</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/134d22/" class="nav-link">UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/686444/" class="nav-link">RanoreXPath</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/64711f/" class="nav-link">基于图像的自动化</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/005bb9/" class="nav-link">维护模式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/11012a/" class="nav-link">性能跟踪</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="专家" class="dropdown-title"><a href="/ranorex/pages/9af963/" class="link-title">专家</a> <span class="title" style="display:none;">专家</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/2f0192/" class="nav-link">映射动态UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/ecebd0/" class="nav-link">RanoreXPath 中的正则表达式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/847ee6/" class="nav-link">用户代码库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/b31e73/" class="nav-link">代码模块</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/811ea3/" class="nav-link">Ranorex Studio 集成开发环境</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f87d8c/" class="nav-link">Ranorex 自动化助手</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="网页和移动测试" class="dropdown-title"><a href="/ranorex/pages/7ccd5d/" class="link-title">网页和移动测试</a> <span class="title" style="display:none;">网页和移动测试</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/d74538/" class="nav-link">Web测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/645c60/" class="nav-link">端点</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6d8643/" class="nav-link">移动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/dfc2b0/" class="nav-link">高级移动测试</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="接口和连接" class="dropdown-title"><a href="/ranorex/pages/89b55d/" class="link-title">接口和连接</a> <span class="title" style="display:none;">接口和连接</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b79789/" class="nav-link">Ranorex仪器向导</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/43beb2/" class="nav-link">技术仪器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7bcce0/" class="nav-link">源代码控制和修订控制</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7d74b6/" class="nav-link">XCOPY 部署</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/18df29/" class="nav-link">持续集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/88ee43/" class="nav-link">TestRail 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/9c9cdb/" class="nav-link">Applitools Eyes 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f9f2a2/" class="nav-link">远程桌面的 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1121bd/" class="nav-link">Visual Studio 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/fc83cd/" class="nav-link">Selenium Webdriver 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/38db78/" class="nav-link">插件</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="系统详细信息" class="dropdown-title"><a href="/ranorex/pages/92d4ae/" class="link-title">系统详细信息</a> <span class="title" style="display:none;">系统详细信息</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b40b84/" class="nav-link">证书</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d75d8f/" class="nav-link">设置和配置</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/0f08c7/" class="nav-link">系统要求</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/86b798/" class="nav-link">64位平台</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/31b776/" class="nav-link">静默安装</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="实践应用主题" class="dropdown-title"><a href="/ranorex/pages/74e52a/" class="link-title">实践应用主题</a> <span class="title" style="display:none;">实践应用主题</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/5011c0/" class="nav-link">构建您的测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/83d6aa/" class="nav-link">常见问题的解决方案</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8ea041/" class="nav-link">最佳实践</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/93ab6d/" class="nav-link">代码示例</a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar-hover-trigger"></div> <aside class="sidebar" style="display:none;"><!----> <nav class="nav-links"><div class="nav-item"><a href="/ranorex/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="基础" class="dropdown-title"><a href="/ranorex/pages/978dd7/" class="link-title">基础</a> <span class="title" style="display:none;">基础</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/db051d/" class="nav-link">在20分钟内了解 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d5a062/" class="nav-link">Ranorex Studio</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d8d817/" class="nav-link">Ranorex 录制器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1f8583/" class="nav-link">测试套件</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/3ff037/" class="nav-link">动作</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/980f3d/" class="nav-link">控件库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/2c14f7/" class="nav-link">验证测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8b8105/" class="nav-link">白名单</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/894a89/" class="nav-link">报告</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级" class="dropdown-title"><a href="/ranorex/pages/11401f/" class="link-title">高级</a> <span class="title" style="display:none;">高级</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/554573/" class="nav-link">数据驱动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/331ecc/" class="nav-link">追踪UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6943ae/" class="nav-link">Ranorex Spy</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/134d22/" class="nav-link">UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/686444/" class="nav-link">RanoreXPath</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/64711f/" class="nav-link">基于图像的自动化</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/005bb9/" class="nav-link">维护模式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/11012a/" class="nav-link">性能跟踪</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="专家" class="dropdown-title"><a href="/ranorex/pages/9af963/" class="link-title">专家</a> <span class="title" style="display:none;">专家</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/2f0192/" class="nav-link">映射动态UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/ecebd0/" class="nav-link">RanoreXPath 中的正则表达式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/847ee6/" class="nav-link">用户代码库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/b31e73/" class="nav-link">代码模块</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/811ea3/" class="nav-link">Ranorex Studio 集成开发环境</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f87d8c/" class="nav-link">Ranorex 自动化助手</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="网页和移动测试" class="dropdown-title"><a href="/ranorex/pages/7ccd5d/" class="link-title">网页和移动测试</a> <span class="title" style="display:none;">网页和移动测试</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/d74538/" class="nav-link">Web测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/645c60/" class="nav-link">端点</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6d8643/" class="nav-link">移动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/dfc2b0/" class="nav-link">高级移动测试</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="接口和连接" class="dropdown-title"><a href="/ranorex/pages/89b55d/" class="link-title">接口和连接</a> <span class="title" style="display:none;">接口和连接</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b79789/" class="nav-link">Ranorex仪器向导</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/43beb2/" class="nav-link">技术仪器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7bcce0/" class="nav-link">源代码控制和修订控制</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7d74b6/" class="nav-link">XCOPY 部署</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/18df29/" class="nav-link">持续集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/88ee43/" class="nav-link">TestRail 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/9c9cdb/" class="nav-link">Applitools Eyes 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f9f2a2/" class="nav-link">远程桌面的 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1121bd/" class="nav-link">Visual Studio 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/fc83cd/" class="nav-link">Selenium Webdriver 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/38db78/" class="nav-link">插件</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="系统详细信息" class="dropdown-title"><a href="/ranorex/pages/92d4ae/" class="link-title">系统详细信息</a> <span class="title" style="display:none;">系统详细信息</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b40b84/" class="nav-link">证书</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d75d8f/" class="nav-link">设置和配置</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/0f08c7/" class="nav-link">系统要求</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/86b798/" class="nav-link">64位平台</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/31b776/" class="nav-link">静默安装</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="实践应用主题" class="dropdown-title"><a href="/ranorex/pages/74e52a/" class="link-title">实践应用主题</a> <span class="title" style="display:none;">实践应用主题</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/5011c0/" class="nav-link">构建您的测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/83d6aa/" class="nav-link">常见问题的解决方案</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8ea041/" class="nav-link">最佳实践</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/93ab6d/" class="nav-link">代码示例</a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>数据驱动测试</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/ranorex/pages/554573/" class="sidebar-link">介绍</a></li><li><a href="/ranorex/pages/7a588a/" class="sidebar-link">定义变量</a></li><li><a href="/ranorex/pages/4190d1/" aria-current="page" class="active sidebar-link">管理和分配数据源</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#创建数据源" class="sidebar-link">创建数据源</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#管理数据源" class="sidebar-link">管理数据源</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#数据源管理对话框" class="sidebar-link">数据源管理对话框</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#分配数据源" class="sidebar-link">分配数据源</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#数据源分配规则" class="sidebar-link">数据源分配规则</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#例子1" class="sidebar-link">例子1</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#例子2" class="sidebar-link">例子2</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#数据源类型和连接器" class="sidebar-link">数据源类型和连接器</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#简单数据表" class="sidebar-link">简单数据表</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#excel数据连接器" class="sidebar-link">Excel数据连接器</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#csv数据连接器" class="sidebar-link">CSV数据连接器</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#sql数据连接器" class="sidebar-link">SQL数据连接器</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#可选的连接设置" class="sidebar-link">可选的连接设置：</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#遮罩数据" class="sidebar-link">遮罩数据</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#极限数据范围" class="sidebar-link">极限数据范围</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/4190d1/#本章步骤摘要" class="sidebar-link">本章步骤摘要</a></li></ul></li><li><a href="/ranorex/pages/9cb150/" class="sidebar-link">数据绑定</a></li><li><a href="/ranorex/pages/0ade87/" class="sidebar-link">执行数据驱动测试</a></li><li><a href="/ranorex/pages/8a7f48/" class="sidebar-link">参数</a></li><li><a href="/ranorex/pages/bd1997/" class="sidebar-link">条件和规则</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>跟踪UI元素</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Ranorex Spy</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>UI元素</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>RanoreXPath</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>基于图像的自动化</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>维护模式</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>性能跟踪</span> <span class="arrow right"></span></p> <!----></section></li></ul> <div class="sidebar-slot sidebar-slot-bottom"><!-- 正方形 -->
      <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="3508773082"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div></aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="articleInfo-wrap" data-v-1cd794fe><div class="articleInfo" data-v-1cd794fe><ul class="breadcrumbs" data-v-1cd794fe><li data-v-1cd794fe><a href="/ranorex/" title="首页" class="iconfont icon-home router-link-active" data-v-1cd794fe></a></li> <li data-v-1cd794fe><a href="/ranorex/categories/?category=%E9%AB%98%E7%BA%A7" title="分类" data-v-1cd794fe>高级</a></li> <li data-v-1cd794fe><a href="/ranorex/categories/?category=%E6%95%B0%E6%8D%AE%E9%A9%B1%E5%8A%A8%E6%B5%8B%E8%AF%95" title="分类" data-v-1cd794fe>数据驱动测试</a></li> <!----></ul> <div class="info" data-v-1cd794fe><div title="作者" class="author iconfont icon-touxiang" data-v-1cd794fe><a href="https://github.com/taylortaurus" target="_blank" title="作者" class="beLink" data-v-1cd794fe>TaylorTaurus</a></div> <div title="创建时间" class="date iconfont icon-riqi" data-v-1cd794fe><a href="javascript:;" data-v-1cd794fe>2021-11-22</a></div> <!----></div></div></div> <!----> <div class="content-wrapper"><div class="right-menu-wrapper"><div class="right-menu-margin"><div class="right-menu-content"></div></div></div> <h1><img src="">
          管理和分配数据源
        </h1> <div class="page-slot page-slot-top"><!-- 固定100% * 90px可显示，max-height:90px未见显示-->
     <ins class="adsbygoogle"
          style="display:inline-block;width:100%;max-height:90px"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="6625304284"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div> <div class="theme-vdoing-content content__default"><h1 id="译-管理和分配数据源"><a href="#译-管理和分配数据源" class="header-anchor">#</a> [译] 管理和分配数据源</h1> <p><a href="https://www.ranorex.com/help/latest/ranorex-studio-advanced/data-driven-testing/data-data-management/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/OfficialPage-ClickMe-blue.svg?longCache=true&amp;style=flat-square" alt=""><span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p><a href="https://github.com/taylortaurus" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/Translator-TaylorTaurus-42B983.svg?longCache=true&amp;style=flat-square" alt=""><span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> <img src="https://img.shields.io/badge/TranslateTime-2018%E5%B9%B49%E6%9C%884%E6%97%A5-green.svg?longCache=true&amp;style=flat-square" alt=""> <img src="https://img.shields.io/badge/UpdateTime-2019%E5%B9%B49%E6%9C%8829%E6%97%A5-green.svg?longCache=true&amp;style=flat-square" alt=""></p> <hr> <p><strong>本章导视</strong></p> <ul><li><a href="#%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E6%BA%90">创建数据源</a></li> <li><a href="#%E7%AE%A1%E7%90%86%E6%95%B0%E6%8D%AE%E6%BA%90">管理数据源</a></li> <li><a href="#%E5%88%86%E9%85%8D%E6%95%B0%E6%8D%AE%E6%BA%90">分配数据源</a></li> <li><a href="#%E6%95%B0%E6%8D%AE%E6%BA%90%E7%B1%BB%E5%9E%8B%E5%92%8C%E8%BF%9E%E6%8E%A5%E5%99%A8">数据源类型和连接器</a></li> <li><a href="#%E9%81%AE%E7%BD%A9%E6%95%B0%E6%8D%AE">遮罩数据</a></li> <li><a href="#%E6%9E%81%E9%99%90%E6%95%B0%E6%8D%AE%E8%8C%83%E5%9B%B4">极限数据范围</a></li> <li><a href="#%E6%9C%AC%E7%AB%A0%E6%AD%A5%E9%AA%A4%E6%91%98%E8%A6%81">本章步骤摘要</a></li></ul> <h2 id="创建数据源"><a href="#创建数据源" class="header-anchor">#</a> 创建数据源</h2> <p>创建数据源与创建表一样容易。数据源的外观如何取决于您的测试，因此就如何设计数据源提出建议超出了本用户指南的范围。</p> <p>要遵循我们的示例解决方案，您需要一个数据源。</p> <p><a href="https://www.ranorex.com/rx-media/rx-user-guide/latest/download/RxTestDatabase.zip" target="_blank" rel="noopener noreferrer">下载CSV表<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>并将其解压缩到计算机上的任何目录，或者简单地将以下文本复制并粘贴到文本文件中，然后另存为.csv。</p> <table><thead><tr><th style="text-align:left;">名</th> <th style="text-align:left;">姓氏</th> <th style="text-align:left;">年龄</th> <th style="text-align:left;">性别</th> <th style="text-align:left;">部门</th> <th style="text-align:left;">Num</th></tr></thead> <tbody><tr><td style="text-align:left;">John</td> <td style="text-align:left;">公共</td> <td style="text-align:left;">48</td> <td style="text-align:left;">男性</td> <td style="text-align:left;">项目管理</td> <td style="text-align:left;">1</td></tr> <tr><td style="text-align:left;">玛丽</td> <td style="text-align:left;">史密斯</td> <td style="text-align:left;">36</td> <td style="text-align:left;">女</td> <td style="text-align:left;">销售</td> <td style="text-align:left;">2</td></tr> <tr><td style="text-align:left;">亨利</td> <td style="text-align:left;">罗杰斯</td> <td style="text-align:left;">29</td> <td style="text-align:left;">男性</td> <td style="text-align:left;">支持</td> <td style="text-align:left;">3</td></tr> <tr><td style="text-align:left;">托马斯</td> <td style="text-align:left;">巴赫</td> <td style="text-align:left;">42</td> <td style="text-align:left;">男性</td> <td style="text-align:left;">发展</td> <td style="text-align:left;">4</td></tr> <tr><td style="text-align:left;">Cindy</td> <td style="text-align:left;">Martens</td> <td style="text-align:left;">19</td> <td style="text-align:left;">女</td> <td style="text-align:left;">办公室</td> <td style="text-align:left;">5</td></tr> <tr><td style="text-align:left;">Hanna</td> <td style="text-align:left;">Perry</td> <td style="text-align:left;">48</td> <td style="text-align:left;">女</td> <td style="text-align:left;">管理</td> <td style="text-align:left;">6</td></tr> <tr><td style="text-align:left;">Will</td> <td style="text-align:left;">Hallmark</td> <td style="text-align:left;">32</td> <td style="text-align:left;">男</td> <td style="text-align:left;">支持</td> <td style="text-align:left;">7</td></tr> <tr><td style="text-align:left;">妮可</td> <td style="text-align:left;">华莱士</td> <td style="text-align:left;">38</td> <td style="text-align:left;">女</td> <td style="text-align:left;">测试</td> <td style="text-align:left;">8</td></tr></tbody></table> <h2 id="管理数据源"><a href="#管理数据源" class="header-anchor">#</a> 管理数据源</h2> <p>数据源及其测试数据 包含，按测试套件进行管理。这意味着：</p> <ul><li>将数据源添加到测试套件后，可以将其分配给该测试套件的测试容器。</li> <li>您无法从测试套件B访问测试套件A中的数据源。首先需要将数据源添加到测试套件B。</li> <li>如果将数据源添加到每个测试套件中，则可以同时在多个测试套件中使用它。</li></ul> <p>要直接访问数据源管理：</p> <p>a. 在测试套件视图中，单击“MANAGE DATA SOURCES... ”。</p> <p>您也可以通过“Data source…”对话框访问数据源管理。选择测试容器后：</p> <p>b. 单击测试套件工具栏中的“Data source”，然后单击“Manage data source...”。</p> <p>c. 单击测试套件的上下文菜单中的“Data source...”，然后单击“Manage data source”。</p> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000020.png" alt="B1030-0000020"></p> <h3 id="数据源管理对话框"><a href="#数据源管理对话框" class="header-anchor">#</a> <strong>数据源管理对话框</strong></h3> <p>出现数据源管理对话框，如下所示。要为我们的示例项目添加CSV数据源：</p> <ol><li>点击New&gt; CSV connector...</li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000030.png" alt="B1030-0000030"></p> <ol><li>添加一个新的数据源。有四种不同类型，如下所述。</li> <li>删除现有的数据源。</li></ol> <p><strong>注意</strong></p> <blockquote><p>删除简单的数据表意味着物理删除数据。数据将丢失！这是因为简单数据表直接存储在相应的测试套件文件中。</p> <p>在此对话框中删除Excel，CSV或SQL数据源意味着仅删除该数据源的连接器和“配置”部分中的设置，而不是数据源文件本身。</p></blockquote> <ol start="3"><li>克隆数据源。</li></ol> <p>对于简单的数据源，这意味着克隆数据源的内容和“配置”部分中的设置。对于所有其他数据源，这意味着克隆连接器和“配置”部分中的设置。例如，此选项对于指定同一Excel数据源的不同工作表很有用。
4. 已添加数据源的列表，每个数据源显示连接器类型（简单，CSV，Excel，SQL）和使用计数（测试套件中已分配数据源的次数）。</p> <ol start="5"><li>配置部分。您可以在此处根据数据源类型管理某些设置。下面说明每种数据源类型的可用设置。</li></ol> <h2 id="分配数据源"><a href="#分配数据源" class="header-anchor">#</a> 分配数据源</h2> <p>添加数据源后，需要将其分配给测试容器，以便其中的模块/变量可以访问数据。</p> <p>为此：</p> <ol><li><p>选择要分配数据源的测试容器。</p></li> <li><p>打开上下文菜单，然后单击Data source…。</p></li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000040.png" alt="B1030-0000040"></p> <ol start="3"><li><p>从下拉菜单中选择所需的数据源，然后单击“确定”。</p></li> <li><p>数据源显示在“测试套件”视图中的测试容器旁边，并指示其中的行数。</p></li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000050.png" alt="B1030-0000050"></p> <h3 id="数据源分配规则"><a href="#数据源分配规则" class="header-anchor">#</a> <strong>数据源分配规则</strong></h3> <p>将数据源分配给测试容器要遵循以下三个规则：</p> <table><thead><tr><th style="text-align:left;">规则1</th> <th style="text-align:left;">一旦分配给测试容器，就不能将数据源分配给该测试容器的后代。</th></tr></thead> <tbody><tr><td style="text-align:left;">规则二</td> <td style="text-align:left;">分配给测试容器后，该测试容器的所有后代都可以访问数据源的内容，但其兄弟姐妹或祖先不能访问该数据源。</td></tr> <tr><td style="text-align:left;">规则三</td> <td style="text-align:left;">树中分配的多个数据源相互补充；他们不会互相取代。</td></tr></tbody></table> <h3 id="例子1"><a href="#例子1" class="header-anchor">#</a> <strong>例子1</strong></h3> <p>让我们以示例的方式查看这些规则的工作方式。假设我们在测试套件中有两个数据源：CSV数据源myCSVData和Excel数据源，myExcelData。</p> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000060.png" alt="B1030-0000060"></p> <ol><li><p>CSV数据源已分配给智能文件夹A-1。</p></li> <li><p>Excel数据源已分配给智能文件夹A-2。</p></li> <li><p>由于规则2，测试用例A及其模块无法访问后代测试容器的数据源。</p></li> <li><p>由于有规则2，智能文件夹A-1的模块可以访问CSV数据源。</p></li> <li><p>由于规则2和3，智能文件夹A-2的所有模块都可以访问CSV和Excel数据源。</p></li> <li><p>由于规则2和3，智能文件夹A-2的后代中的所有模块都可以访问CSV和Excel数据源。</p></li></ol> <h3 id="例子2"><a href="#例子2" class="header-anchor">#</a> <strong>例子2</strong></h3> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000070.png" alt="B1030-0000070"></p> <ol><li><p>在测试用例B和智能文件夹1下分配了所有数据源。因此，这些测试容器及其模块无法访问数据源。</p></li> <li><p>Excel数据源已分配给智能文件夹1-1。因此，此树分支的后代（模块，测试容器）可以访问Excel数据源。</p></li> <li><p>CSV数据源已分配给智能文件夹1-2。因此，其模块可以访问此数据源。</p></li> <li><p>Excel数据源已分配给智能文件夹1-2-1。因此，它的后代可以访问CSV和Excel数据源。</p></li> <li><p>Excel数据源也已分配给智能文件夹1-3-1。因此，它的后代可以访问此数据源。</p></li></ol> <h2 id="数据源类型和连接器"><a href="#数据源类型和连接器" class="header-anchor">#</a> 数据源类型和连接器</h2> <p>Ranorex Studio支持四种不同类型的数据源：简单，CSV，Excel和SQL数据表。</p> <p>除简单数据表外，所有这些源均通过连接器添加。这意味着Ranorex Studio仅链接到数据表文件。它不会将文件的内容添加到测试套件中。</p> <h3 id="简单数据表"><a href="#简单数据表" class="header-anchor">#</a> <strong>简单数据表</strong></h3> <p>当您想快速设置小型数据驱动的测试（例如试验和错误）时，简单数据表非常有用。我们不建议它们用于比几个数据行更复杂的事情。</p> <p>简单数据表及其所有内容都直接存储在测试套件文件（.rxtst）中。这就是为什么您必须直接在“ 数据源...”对话框中创建和维护它们的原因。这也是为什么在数据源管理对话框中将它们删除时将它们完全删除的原因，这与其他数据源不同。</p> <p>要添加新的简单数据表：</p> <ol><li><p>单击 New&gt; Simple data source。</p></li> <li><p>命名数据源。</p></li> <li><p>单击确定。</p></li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000080.png" alt="B1030-0000080"></p> <p>1.该面具选项下面进一步分开说明。</p> <ol start="4"><li>在测试容器的“ 数据源...”对话框中，选择简单数据源，然后在表编辑器中创建内容。</li></ol> <p><strong>贴士</strong></p> <blockquote><p>您可以将表格从Excel文件粘贴到表格编辑器中。</p></blockquote> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000090.png" alt="B1030-0000090"></p> <ol start="5"><li>完成后，单击“确定”。</li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000100.png" alt="B1030-0000100"></p> <p>2.您还可以指定数据范围。该选项将在下面单独说明。</p> <h3 id="excel数据连接器"><a href="#excel数据连接器" class="header-anchor">#</a> <strong>Excel数据连接器</strong></h3> <p>Excel数据源通过连接器添加。</p> <p><strong>贴士</strong></p> <blockquote><p>代替默认的Excel文件 格式 xlsx，您还可以使用本机二进制文件格式 xlsb。 Microsoft Office 2007和更高版本支持此文件格式，并且比非二进制版本要快得多。</p></blockquote> <p>要添加Excel连接器：</p> <ol><li><p>单击 新建&gt; Excel连接器…</p></li> <li><p>配置连接器，然后单击确定。</p></li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000110.png" alt="B1030-0000110"></p> <p>Excel连接器配置：</p> <ol><li><p>命名 Excel连接器并指定 Excel文件的位置。</p></li> <li><p>这会将Excel文件复制到您的项目文件夹中。如果使用版本控制，则必须检查。</p></li></ol> <p><strong>贴士</strong></p> <blockquote><p>强烈建议您在任何情况下都选中此选项。这样，您就不必担心测试数据文件的位置。此外，当您通过Ranorex Remote等部署测试时，文件将自动在运行时环境中传输到Ranorex代理。</p></blockquote> <ol start="3"><li>工作表选择</li></ol> <p>如果您的Excel文件包含多个工作表，则可以在此处指定要使用的工作表。您也可以将测试数据限制在特定范围内。</p> <p>取消选中自动加载选项，以减少测试套件的启动加载时间。但是，这也意味着行数不会在测试容器旁边显示。</p> <p><strong>贴士</strong></p> <blockquote><p>使用“克隆”选项可以快速创建多个Excel连接器，这些连接器链接到同一文件，但工作表或范围不同。</p></blockquote> <ol start="4"><li>该面具选项下面进一步分开说明。</li></ol> <h3 id="csv数据连接器"><a href="#csv数据连接器" class="header-anchor">#</a> <strong>CSV数据连接器</strong></h3> <p>CSV数据源通过连接器添加。添加后，可以在Ranorex Studio的“ Data source…”对话框中编辑CSV数据源。通过单击“OK”或“Apply”保存这些更改时，实际的CSV文件也将更改。</p> <p>要添加CSV连接器：</p> <ol><li><p>单击新建&gt; CSV连接器...</p></li> <li><p>配置连接器，然后单击确定。</p></li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000120.png" alt="B1030-0000120"></p> <p>CSV连接器配置：</p> <ol><li><p>命名 CSV连接器并指定 CSV文件的位置。</p></li> <li><p>这会将Excel文件复制到您的项目文件夹中。如果使用版本控制，则必须检查。</p></li> <li><p>资料配置</p></li></ol> <p>指定CSV文件是否包含标题行。取消选中自动加载选项，以减少测试套件的启动加载时间。但是，这也意味着行数不会在测试容器旁边显示。</p> <ol start="4"><li>掩膜选项将在下面单独解释。</li></ol> <h3 id="sql数据连接器"><a href="#sql数据连接器" class="header-anchor">#</a> <strong>SQL数据连接器</strong></h3> <p>使用SQL数据连接器，您可以访问SQL数据库并使用SQL查询从数据库中提取数据。我们将通过一个访问Microsoft Access数据库的简单示例来说明此过程。</p> <ol><li>单击新建&gt; SQL连接器…</li> <li>为连接器命名。</li> <li>单击创建以指定SQL连接字符串。</li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000130.png" alt="B1030-0000130"></p> <ol start="4"><li><p>指定数据库文件的位置。</p></li> <li><p>指定可选的连接设置（请参阅下文），然后单击“确定”。</p></li></ol> <h3 id="可选的连接设置"><a href="#可选的连接设置" class="header-anchor">#</a> <strong>可选的连接设置：</strong></h3> <p>a.更改数据库连接类型以适合您的数据库类型。在我们的示例中，Microsoft Access数据库文件是正确的，因为我们使用的是Microsoft Access数据库。</p> <p>b.如果数据库需要登录，请在此处指定。</p> <p>c.单击以测试到数据库的连接（推荐）。</p> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000140.png" alt="B1030-0000140"></p> <ol start="6"><li>在查询下，单击创建以指定数据库查询。</li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000150.png" alt="B1030-0000150"></p> <ol start="7"><li>在数据库（在我们的示例中为Microsoft Access）中定义所需的SQL查询，以将数据提供给Ranorex Studio，然后单击“确定”。</li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000160.png" alt="B1030-0000160"></p> <ol start="8"><li>设置自动加载行为（为加快加载速度而禁用，但在测试套件视图中缺少行指示符）和屏蔽（在下面单独说明），然后单击确定。</li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000170.png" alt="B1030-0000170"></p> <h2 id="遮罩数据"><a href="#遮罩数据" class="header-anchor">#</a> 遮罩数据</h2> <p>您可以屏蔽所有数据源类型的数据。这样，您可以在报表中隐藏敏感数据，同时仍允许Ranorex Studio对其进行访问以进行测试。</p> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000180.png" alt="B1030-0000180"></p> <ol><li>未屏蔽 列中的数据将正常显示在报告中。</li> <li>蒙版列中的数据隐藏在报告中。</li></ol> <h2 id="极限数据范围"><a href="#极限数据范围" class="header-anchor">#</a> 极限数据范围</h2> <p>您可以限制所有数据源的数据范围。这使您只能使数据源的某些行可用于测试容器。</p> <ol><li><p>在“ 数据源…”对话框中输入行范围。</p></li> <li><p>点击预览有效数据集…以查看结果。</p></li></ol> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/B10/B1030-0000190.png" alt="B1030-0000190"></p> <h2 id="本章步骤摘要"><a href="#本章步骤摘要" class="header-anchor">#</a> 本章步骤摘要</h2> <p>现在，我们已经解释了用于管理和分配数据源的所有选项，让我们快速完成所有必要的步骤，为下一章再次准备示例解决方案。</p> <ol><li><p>确保您已准备好数据源（CSV文件）。</p></li> <li><p>在测试套件视图中，单击“管理数据源...”。</p></li> <li><p>点击新建&gt; CSV连接器...</p></li> <li><p>将其命名为myCSVData，指定文件的位置，选中所有三个框，然后单击OK。</p></li> <li><p>在测试套件视图中，右键单击测试用例Data-driven_DB_Test，然后单击数据源…。</p></li> <li><p>在下拉菜单中，选择myCSVData，然后点击确定。</p></li></ol> <p>现在，您已经分配了数据源。您的解决方案已准备好进行下一步：数据绑定。</p> <hr></div></div> <div class="page-slot page-slot-bottom"><!-- 横向自适应 -->
      <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="6620245489"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div> <div class="page-edit"><!----> <!----> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">11/26/2021, 2:14:10 PM</span></div></div> <div class="page-nav-wapper"><div class="page-nav-centre-wrap"><a href="/ranorex/pages/7a588a/" class="page-nav-centre page-nav-centre-prev"><div class="tooltip">定义变量</div></a> <a href="/ranorex/pages/9cb150/" class="page-nav-centre page-nav-centre-next"><div class="tooltip">数据绑定</div></a></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/ranorex/pages/7a588a/" class="prev">定义变量</a></span> <span class="next"><a href="/ranorex/pages/9cb150/">数据绑定</a>→
      </span></p></div></div></div> <div class="article-list"><div class="article-title"><a href="/ranorex/archives/" class="iconfont icon-bi">最近更新</a></div> <div class="article-wrapper"><dl><dd>01</dd> <dt><a href="/ranorex/pages/93ab6d/"><div>介绍</div></a> <span>11-22</span></dt></dl><dl><dd>02</dd> <dt><a href="/ranorex/pages/efb1ea/"><div>解决元素未找到错误</div></a> <span>11-22</span></dt></dl><dl><dd>03</dd> <dt><a href="/ranorex/pages/9be76e/"><div>添加解决方案设置到解决方案</div></a> <span>11-22</span></dt></dl> <dl><dd></dd> <dt><a href="/ranorex/archives/" class="more">更多文章&gt;</a></dt></dl></div></div></main></div> <div class="footer"><!----> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2021-2021
    <span></span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <div class="custom-html-window custom-html-window-rb" style="display:;"><div class="custom-wrapper"><i class="close-but">×</i> <div><!-- 固定160*160px -->
      <ins class="adsbygoogle"
          style="display:inline-block;max-width:160px;max-height:160px"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="8377369658"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script>
      </div></div></div></div><div class="global-ui"><div></div></div></div>
    <script src="/ranorex/assets/js/app.24b7eaa5.js" defer></script><script src="/ranorex/assets/js/2.ec9fdd2b.js" defer></script><script src="/ranorex/assets/js/62.3f142075.js" defer></script>
  </body>
</html>
